
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../../global/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./frm.css" />
</head>
<body>
	<div id="main">
        <div id="no-result-tip" class="no-result-tip" style="display: none;">亲，换一个词试试，可能就有你要的了！</div>
        <div id="hotSearch">
            <div class="title">热门搜索</div>

        </div>
		<div id="history"></div>
		<div id="result" class="aui-list"></div>
	</div>
</body>



<script id="tpl-feed-row" type="text/x-dot-template">
	<div class="feed-row aui-list-item" style="{{=it.hideBottom ? 'border-bottom: none; background-image: none;' : ''}}" data-tid="{{=it.tid}}" data-url="{{=safeStr(it.url)}}" data-webtitle="{{=safeStr(it.webtitle)}}" data-fid="{{=(it.fid || it.columnid)}}" data-from="search" data-share="{{=it.isshare}}" data-position="{{=genPosition(it.position)}}" tapmode onclick="!window.noop && ccn() && views.openPostFromList(this);">
		<div class="main">
			{{? str_being(it.thumbnail)}}
				<div class="right">
					{{?it.duration}}
						<div class="play"></div>
						<div class="duration">{{=fmtSecond(it.duration)}}</div>
					{{?}}
					<img class="pic" src="{{=absAssetUrl(it.thumbnail)}}" data-src="{{=absAssetUrl(it.thumbnail)}}"></img>
				</div>
                <div class="left">
			{{??}}
                <div class="full">
			{{?}}
    				<div class="subject {{=str_being(it.banner) ? "banner-subject" : ""}}">
    					<span class="aui-hide">[{{=genPosition(it.position)}}]</span>

    					<span class="put-top {{=classOnPutTop(it)}}">置顶</span>
    					{{? it.isshare == 1}}
    						<span class="put-top isshare">{{=it.sharetag}}</span>
    					{{?}}
    					{{? it.isdeal == 1}}
    						<span class="put-top isclosed">已关闭</span>
    					{{?}}

    					{{? str_being(it.tagname) && !it.tag_on_end }}
    						<span class="put-top tagname" style="{{=str_being(it.tagcolor) ? ("background-color:"+it.tagcolor) : ""}}">{{=it.tagname}}</span>
    					{{?}}

    					<span>{{=decodeEmoji(it.subject)}}</span>

    					{{? str_being(it.tagname) && it.tag_on_end }}
    						<span class="put-top tagname tag_on_end" style="{{=str_being(it.tagcolor) ? ("background-color:"+it.tagcolor) : ""}}">{{=it.tagname}}</span>
    					{{?}}
    				</div>

                    {{? str_being(it.banner)}}
                        <div class="banner" style="{{=obj_being(it.height) ? ("height:"+it.height+"px") : ""}}">
        					<img class="pic" src="{{=absAssetUrl(it.banner)}}" data-src="{{=absAssetUrl(it.banner)}}"></img>
                        </div>
                    {{?}}

            		<div class="meta">
                        <div class="aui-card-list-user-avatar">
                            <img src="{{=it.avatar}}" data-type="avatar" class="aui-img-round" />
                        </div>
            			<span class="author text">{{=decodeEmoji(it.author)}}</span>
        				<span class="forum text {{=classOnForum()}}" tapmode onclick="!window.noop && tryGotoForum(event, this);">{{=decodeEmoji(it.columnname || it.forumname || '')}}</span>
            			<span class="aui-pull-right">
            				<span class="date {{=classOnDate()}} text">{{=vdateF(it.lastpost)}}&nbsp;</span>
            				<span class="date aui-hide">({{=vdate(it.lastpost, true)}})</span>
            	            <i class="aui-iconfont aui-icon-comment text"></i>
            				<span class="replies text">{{=it.replies}}</span>
            			</span>
            		</div>
                </div> <!-- full/left -->
        </div><!-- main -->
	</div>
</script>

<script id="tpl-feed-row-hot" type="text/x-dot-template">
	{{~ it.threadHots :list:i}}
	<div class="feed-row-hot aui-list-item {{=(list.shared == 1) ? 'post-shared' : ''}}" data-tid="{{=list.tid}}" data-fid="{{=(list.fid || list.columnid)}}" data-from="search" tapmode onclick="ccn() && views.openPostFromList(this);">
		<div class="main">
			{{? str_being(list.thumbnail)}}
				<div class="right">
					{{?list.duration}}
						<div class="play"></div>
						<div class="duration">{{=fmtSecond(list.duration)}}</div>
					{{?}}
					<img class="pic" src="{{=absAssetUrl(list.thumbnail)}}" />
				</div>
                <div class="left">
			{{??}}
                <div class="full">
			{{?}}
    				<div class="subject">
    					<span>{{=decodeEmoji(list.subject)}}</span>
    				</div>
					<div class="meta">
						<span class="lauds">
							<i class="aui-iconfont aui-icon-laud"></i>{{=list.recommends}}
						</span>
						<span class="replies">
				            <i class="aui-iconfont aui-icon-comment"></i>{{=list.replies}}
						</span>
					</div>
                </div>
        </div><!-- main -->
	</div>
	{{~}}
	<div class="aui-list bor_t_none" onclick="goBefore(this)" data-name="{{=it.columnname}}" data-fid="{{=it.fid}}">
        <div class="aui-list-item">
            <div class="aui-list-item-inner aui-list-item-arrow"><span>进入<span style="color:#D65E5E;"> {{=it.columnname}} </span>板块看更多精彩内容</span></div>
        </div>
    </div>
</script>

<script id="tpl-feed-row-out-site" type="text/x-dot-template">
	<div class="feed-row-out-site aui-list-item" data-tid="{{=it.tid}}" data-fid="{{=(it.fid || it.columnid)}}">
		<a class="mw-related-post" data-tid="{{=it.tid}}">
			<div class="main">
			{{? str_being(it.thumbnail)}}
				<div class="right" data-tid="{{=it.tid}}" onclickx="openPostFromRecommends(this);">
					<img class="pic" src="{{=absAssetUrl(it.thumbnail)}}" data-src="{{=absAssetUrl(it.thumbnail)}}"></img>
				</div>
				<div class="left">
			{{??}}
				<div class="full">
			{{?}}
    				<div class="subject">
    					<span data-tid="{{=it.tid}}" onclickx="openPostFromRecommends(this);">{{=decodeEmoji(it.subject)}}</span>
                    </div>
					<p class="meta">
						<span class="open-app aui-btn aui-btn-info aui-btn-outlined">打开应用查看</span>
						<span class="lauds">
							<i class="aui-iconfont aui-icon-laud"></i>{{=it.recommends}}
						</span>
						<span class="replies">
				            <i class="aui-iconfont aui-icon-comment"></i>{{=it.replies}}
						</span>
					</p>
				</div>
			</div>
		</a>
	</div>
</script>

<script id="tpl-feed-row-out-site-showall" type="text/x-dot-template">
	<div class="feed-row-out-site aui-list-item" data-tid="{{=it.tid}}" data-fid="{{=(it.fid || it.columnid)}}">
		<div class="main" data-tid="{{=it.tid}}" onclick="openPostFromRecommends(this);">
			{{? str_being(it.thumbnail)}}
			<div class="right">
				<img class="pic" src="{{=absAssetUrl(it.thumbnail)}}" data-src="{{=absAssetUrl(it.thumbnail)}}"></img>
			</div>
			<div class="left">
				{{??}}
				<div class="full">
					{{?}}
					<div class="subject">
						<span data-tid="{{=it.tid}}">{{=decodeEmoji(it.subject)}}</span>
					</div>
				</div>
			</div>
		</div>
	</div>
</script>

<script id="tpl-home-comment-cell" type="text/x-dot-template">
	<div class="comment-cell">
		<div class="comment-title-wrapper">
			<div class="comment-title" data-time="{{=it.post.dateline}}" data-fid="{{=it.post.fid}}"
				 data-tid="{{=it.post.tid}}" data-from="home_page" tapmode onclick="ccn() && openPostDetail(this);">原文：{{=it.post.thread_subject}}</div>
			<div class="comment-title-border"></div>
		</div>
		<div class="comment-container" data-pos="{{=it.post.position}}" data-time="{{=it.post.dateline}}" data-fid="{{=it.post.fid}}"
			 data-tid="{{=it.post.tid}}" data-from="home_page" tapmode onclick="ccn() && views.openPostFromList(this);">
			<div class="comment-content">{{=myEmo.transText(fmtContent(decodeEmoji(it.post.message), true, undefined, true))}}</div>
			<div class="comment-toolbar">
				<div class="comment-avatar">
					<img src="{{=it.post.authoravatar}}" class="aui-img-round">
					<div>{{=it.post.author}}</div>
				</div>
				<div class="comment-forum text">{{=it.post.columnname}}</div>
				<div class="comment-toolbar-buttons">
					<div class="comment-toolbar-button" data-tid="{{=it.post.tid}}" data-fid="{{=it.post.fid}}"
						 data-pid="{{=it.post.pid}}" data-authorid="{{=it.post.authorid}}" tapmode onclick="homeCommentShare(event)">
						<img src="../../../global/image/lxx/share.png">
						<div class="text">{{=it.post.reply_sharetimes}}</div>
					</div>
					<div class="comment-toolbar-button" data-tid="{{=it.post.tid}}"  data-pid="{{=it.post.pid}}"
						 data-authorid="{{=it.post.authorid}}" tapmode onclick="homeLaudComment(event)">
						<img class="auix-icon-zan" src="../../../global/image/lxx/zan{{=it.post.recommended_byme ? 1 : 0}}.png">
						<div class="lauds-num text">{{=it.post.recommends}}</div>
					</div>
					<div class="comment-toolbar-button" data-author="{{=it.post.author}}" tapmode onclick="homeReplyComment(event)">
						<img src="../../../global/image/lxx/replies.png">
						<div class="text">{{=it.post.reply_replytimes}}</div>
					</div>
				</div>
			</div>
			<img class="quotes-icon left-top" src="../../../global/image/left-quotes.png">
			<img class="quotes-icon right-top" src="../../../global/image/right-quotes.png">
		</div>
	</div>
</script>


<script id="tpl-history" type="text/x-dot-template">
	<div class="aui-content">
        <ul class="aui-list aui-list-in">
			{{~it :v:i}}
            <li class="aui-list-item" data-key="{{=v}}">
                <div class="aui-list-item-inner" tapmode onclick="selectHistoryItem(this);">
					{{=v}}
                </div>
		        <a class="close aui-pull-right" tapmode onclick="deleteSearchItem(this);">
		            <span class="aui-iconfont aui-icon-close"></span>
		        </a>
            </li>
			{{~}}
		</ul>
		<p class="clear-all {{=classForClear(it)}}" tapmode onclick="clearSearchHistory(this);">清除所有记录</p>
	</div>
</script>

<script id="tpl-hot" type="text/x-dot-template">
<div class="aui-content">
    <div class="aui-row bor_t">
    {{~it :v:i}}
        <div class="aui-col-xs-3 bor_l" data-name="{{=v}}" tapmode onclick="hotTag(this)">{{=v}}</div>
    {{~}}
    </div>

</div>

</script>

<script id="tpl-no-result" type="text/x-dot-template">
	<p class="no-result">无匹配结果</p>
</script>

<script type="text/javascript" src="../../../config.js"></script>
<script type="text/javascript" src="../../../global/script/lib/api.js"></script>
<script type="text/javascript" src="../../../global/script/lib/doT.min.js"></script>
<script type="text/javascript" src="../../../global/script/mylib.js"></script>
<script type="text/javascript" src="../../../app.js"></script>
<script type="text/javascript" src="./frm.js"></script>

</html>

<script type="text/javascript" src="../../../global/script/_fakeApi.js"></script>

<script type="text/javascript">
	window.mockSearchResult = {
		"Version": "1",
		"Charset": "UTF-8",
		"Variables": {
			"cookiepre": "R9rg_2132_",
			"auth": "e530QmKupwFKyWuYEj\/Ixz38WP+COboOTpxobklV2b2AAnvoqNdm\/xkbCJiA6x0k\/aB1Ydb0qps4osrh4T6ITrA",
			"saltkey": "e6N86iRo",
			"member_uid": "241",
			"member_username": "fooUser",
			"member_avatar": "http:\/\/localhost\/uc_server\/avatar.php?uid=241&size=small",
			"groupid": "10",
			"formhash": "d50e853a",
			"ismoderator": null,
			"readaccess": "10",
			"notice": {
				"newpush": "0",
				"newpm": "0",
				"newprompt": "1",
				"newmypost": "0"
			},
			"data": [{
				"tid": "225",
				"fid": "2",
				"posttableid": "0",
				"typeid": "0",
				"sortid": "0",
				"readperm": "0",
				"price": "0",
				"author": "rqxx",
				"authorid": "6",
				"subject": "<strong><font color=\"#ff0000\">\u4efb\u4e18<\/font><\/strong>\u4e00\u7fa4\u4eba\u805a\u9910\uff0c\u8ba9\u65e0\u6570<strong><font color=\"#ff0000\">\u4efb\u4e18<\/font><\/strong>\u4eba\u6d41\u6cea\uff01",
				"dateline": "1502459167",
				"lastpost": "1502459167",
				"lastposter": "AAAAAA",
				"views": "9",
				"replies": "5",
				"displayorder": "1",
				"highlight": "",
				"digest": "0",
				"rate": "0",
				"special": "0",
				"attachment": "0",
				"moderated": "1",
				"closed": "0",
				"stickreply": "0",
				"recommends": "0",
				"recommend_add": "0",
				"recommend_sub": "0",
				"heats": "1",
				"status": "32",
				"isgroup": "0",
				"favtimes": "0",
				"sharetimes": "0",
				"stamp": "-1",
				"icon": "",
				"pushedaid": "0",
				"cover": "0",
				"replycredit": "0",
				"relatebytag": "1501045261\t",
				"maxposition": "6",
				"bgcolor": "",
				"comments": "0",
				"hidden": "0",
				"realtid": "225",
				"folder": "common",
				"new": "0",
				"id": "461633",
				"forumname": "\u4efb\u4e18\u7206\u6599",
				"lastposterenc": "AAAAAA",
				"multipage": "... <a href=\"forum.php?mod=viewthread&tid=225&page=1\" target=\"_blank\">1<\/a> <a href=\"forum.php?mod=viewthread&tid=225&page=2\" target=\"_blank\">2<\/a> ",
				"message": ""
			}, {
				"tid": "317",
				"fid": "37",
				"posttableid": "0",
				"typeid": "0",
				"sortid": "0",
				"readperm": "0",
				"price": "0",
				"author": "\u652f\u6301\u4e2d\u56fd",
				"authorid": "199",
				"subject": "<strong><font color=\"#ff0000\">\u4efb\u4e18<\/font><\/strong>\u5228\u8179\u4ea7\u9700\u8981\u591a\u5c11\u94b1\uff1f",
				"dateline": "1502459167",
				"lastpost": "1502459167",
				"lastposter": "\u7396\u6708\u4f60\u53ef\u597d",
				"views": "2",
				"replies": "2",
				"displayorder": "0",
				"highlight": "",
				"digest": "0",
				"rate": "0",
				"special": "0",
				"attachment": "0",
				"moderated": "0",
				"closed": "0",
				"stickreply": "0",
				"recommends": "0",
				"recommend_add": "0",
				"recommend_sub": "0",
				"heats": "2",
				"status": "32",
				"isgroup": "0",
				"favtimes": "0",
				"sharetimes": "0",
				"stamp": "-1",
				"icon": "",
				"pushedaid": "0",
				"cover": "0",
				"replycredit": "0",
				"relatebytag": "0",
				"maxposition": "3",
				"bgcolor": "",
				"comments": "0",
				"hidden": "0",
				"realtid": "317",
				"folder": "common",
				"new": "0",
				"id": "886686",
				"forumname": "\u4efb\u4e18\u5708",
				"lastposterenc": "%E7%8E%96%E6%9C%88%E4%BD%A0%E5%8F%AF%E5%A5%BD",
				"multipage": "",
				"message": "\u8bf7\u77e5\u9053\u7684\u544a\u8bc9\u6211\u4e00\u4e0b\uff0c\u8c22\u8c22"
			}, {
				"tid": "315",
				"fid": "2",
				"posttableid": "0",
				"typeid": "0",
				"sortid": "0",
				"readperm": "0",
				"price": "0",
				"author": "\u4efb\u4e18\u5708\u7ba1\u7406\u5458",
				"authorid": "218",
				"subject": "<strong><font color=\"#ff0000\">\u4efb\u4e18<\/font><\/strong>\u5708\u7248\u89c4",
				"dateline": "1502459167",
				"lastpost": "1502459167",
				"lastposter": "\u4efb\u4e18\u5708\u7ba1\u7406\u5458",
				"views": "1",
				"replies": "0",
				"displayorder": "0",
				"highlight": "",
				"digest": "0",
				"rate": "0",
				"special": "0",
				"attachment": "0",
				"moderated": "0",
				"closed": "0",
				"stickreply": "0",
				"recommends": "0",
				"recommend_add": "0",
				"recommend_sub": "0",
				"heats": "0",
				"status": "32",
				"isgroup": "0",
				"favtimes": "0",
				"sharetimes": "0",
				"stamp": "-1",
				"icon": "",
				"pushedaid": "0",
				"cover": "0",
				"replycredit": "0",
				"relatebytag": "0",
				"maxposition": "1",
				"bgcolor": "",
				"comments": "0",
				"hidden": "0",
				"realtid": "315",
				"folder": "common",
				"new": "0",
				"id": "339886",
				"forumname": "\u4efb\u4e18\u7206\u6599",
				"lastposterenc": "%E4%BB%BB%E4%B8%98%E5%9C%88%E7%AE%A1%E7%90%86%E5%91%98",
				"multipage": "",
				"message": "\u5173\u4e8e\u53d1\u5e16\u53d1\u5e03\u6709\u610f\u4e49\u7684\u5e16\u5b50\r\n1\u3001\u9009\u62e9\u6b63\u786e\u7684\u680f\u76ee\u53d1\u5e16\uff08\u53d1\u5e16\u5185\u5bb9\u4e0e\u7248\u5757\u4e3b\u9898\u76f8\u7b26\uff09\uff1b\r\n2\u3001\u7981\u6b62\u53d1\u5e03\u4e0d\u826f\u5e7f\u544a\u4fe1\u606f\uff0c\u6807\u9898\u8bf7\u76f4\u5954\u4e3b\u9898\uff0c\u5185\u5bb9\u53ef\u914d\u56fe\u52a0\u4ee5\u8bf4\u660e\uff1b\r\n3\u3001\u591a\u53d1\u5e16\uff0c\u591a\u53d1\u6709\u610f\u4e49\u7684\u5e16\u5b50\uff0c\u5982\u679c\u60a8\u53ef\u4ee5\u7528\u81ea\u5df1\u7684\u70b9\u6ef4\u6587\u5b57\u5e2e\u52a9\u90a3\u4e9b ..."
			}],
			"perpage": "3"
		}
	}

	fooHistory();
	fooSearch();
</script>
